package com.wonderland.lucy.showcase.security.service;

import com.wonderland.lucy.showcase.security.dao.UserDao;
import com.wonderland.lucy.showcase.security.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public User getUserByUsername(String username) {
        return userDao.getUserByUsername(username);
    }

    public List<User> getUserList(User user) {
        return userDao.getUserList(user);
    }
}
